<div class="row m-n">
    <div class="crumbs-bar">
        <div yb-crumbs></div>
    </div>
    <div tabset type="tab">
        <div tab heading="三包出库" active="activeFlag[0]" ng-click="changeTab(0)">
            <div class="row wrapper-y-sm">
                <div class="operate-bar col-xs-4 font-0">
                    <button class="btn btn-operate m-r-sm" ng-click="add()"
                        ng-disabled="!btnPermission.guaranteesOutAdd"
                        title="{{!btnPermission.guaranteesOutAdd?'无权限执行此操作':''}}">新增</button>
                    <button class="btn btn-operate m-r-sm" ng-click="delData('batch')"
                        ng-disabled="!btnPermission.guaranteesOutDel"
                        title="{{!btnPermission.guaranteesOutDel?'无权限执行此操作':''}}">删除</button>

                    <button class="btn btn-operate" ng-click="batchPrint()">批量打印</button>
                    <button class="btn btn-operate m-r-sm" style="margin-left:10px"  ng-click="delHistory()">已删除</button>

                    <button class="btn btn-operate m-r-sm" ng-click="batchPosting()" translate>批量过账</button>
                    <button class="btn btn-operate m-r-sm" ng-click="batchReserve()" translate>批量创建预留</button>
                </div>
                <div class="search-bar wrapper-none col-xs-8">
                    <div class="btn-group m-l-xs pull-right">
                        <button type="button" class="btn btn-default base-color" ng-click="search()" title="刷新">
                            <i class="yb-icon ico-refresh"></i>
                        </button>
                        <button type="button" class="btn btn-default base-color" title="配置表格列"
                            ng-click="switchToolbar('ColConfig');">
                            <i class="yb-icon ico-set"></i>
                        </button>
                        <div class="btn btn-default base-color" ng-if="!!btnPermission.guaranteesOutExport">
                            <div title="导出">
                                <i class="yb-icon ico-export-o"></i>
                            </div>
                            <ul class="more-tool">
                                <li yb-download download-url="exportParam.sectionUrl"
                                    download-param="exportParam.sectionParam" download-key="ids">
                                    <i class="yb-icon ico-export-o"></i> 导出
                                </li>
                                <li yb-download download-url="exportParam.allUrl" download-param="condition"
                                    download-duration="3">
                                    <i class="yb-icon ico-export-o"></i> 导出全部
                                </li>
                            </ul>
                        </div>
                    </div>
                    <button class="btn-advance pull-right m-l-xs"
                        ng-click="switchToolbar('AdvanceSearch')">高级搜索</button>
                    <div class="input-group pull-right clearfix">
                        <input type="text" class="form-control txt-search" placeholder="出库单号"
                            ng-model="condition.guaranteesOutNo">
                        <span class="input-group-addon cursor-pointer" ng-click="search(1)">搜索</span>
                    </div>
                </div>
            </div>
            <div yb-advance-search show-toolbar="toolbarConfig.showAdvanceSearch" search-data="search(1)"
                reset-data="reset()">
                <div class="advance-search m-t-sm">
                    <div class="form-group clearfix">
                        <label class="control-label">出库单号：</label>
                        <textarea ng-model="condition.billNos" class="form-control" placeholder="逗号分隔或者换行分隔">
                        </textarea>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">客户名称：</label>
                        <textarea ng-model="condition.purchaseNames" class="form-control" placeholder="逗号分隔或者换行分隔">
                        </textarea>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">申请单号：</label>
                        <input type="text" ng-model="condition.purchaseNo" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">零件号：</label>
                        <input type="text" ng-model="condition.materialsNo" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">SAP预留单号：</label>
                        <input type="text" ng-model="condition.sapOrder" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">服务信息单号：</label>
                        <input type="text" ng-model="condition.serviceNo" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">调出仓库：</label>
                        <input type="text" ng-model="condition.outLocation" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">制单人：</label>
                        <input type="text" ng-model="condition.createName" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">出库状态：</label>
                        <select name="returnStatus" class="form-control" ng-model="condition.outLocationStatus"
                            ng-options="item.id as item.name for item in outState">
                            <option value="">请选择</option>
                        </select>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">冲销状态：</label>
                        <select name="reverseStatus" class="form-control" ng-model="condition.isReverse"
                            ng-options="item.id as item.name for item in reverseState">
                            <option value="">请选择</option>
                        </select>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">过账状态：</label>
                        <select name="status" class="form-control" ng-model="condition.postStatus">
                            <option value="">请选择</option>
                            <option value="0">未过账</option>
                            <option value="1">部分过账</option>
                            <option value="2">已过账</option>
                        </select>
                    </div>
                    <div class="form-group clearfix m-b-none">
                        <label class="control-label">制单时间：</label>
                        <input type="text" class="form-control date-picker" ng-model="condition.createDateStart"
                            datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDataPicker(0)"
                            is-open="datePickerFlag[0]" close-text="关闭"
                            ng-change="checkDate(condition, 'createDateStart', 'createDateEnd')" modal-size="small"
                            readonly>
                    </div>
                    <div class="form-group clearfix m-b-none">
                        <label class="control-label"></label>
                        <label class="control-label wave-line">~</label>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"></label>
                        <input type="text" class="form-control date-picker" ng-model="condition.createDateEnd"
                            datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDataPicker(1)"
                            is-open="datePickerFlag[1]" close-text="关闭"
                            ng-change="checkDate(condition, 'createDateStart', 'createDateEnd')" modal-size="small"
                            readonly>
                    </div>
                    <div class="form-group clearfix m-b-none">
                        <label class="control-label">过账时间：</label>
                        <input type="text" class="form-control date-picker" ng-model="condition.postDateStart"
                            datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDataPicker(2)"
                            is-open="datePickerFlag[2]" close-text="关闭"
                            ng-change="checkDate(condition, 'postDateStart', 'postDateEnd')" modal-size="small"
                            readonly>
                    </div>
                    <div class="form-group clearfix m-b-none">
                        <label class="control-label"></label>
                        <label class="control-label wave-line">~</label>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"></label>
                        <input type="text" class="form-control date-picker" ng-model="condition.postDateEnd"
                            datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDataPicker(3)"
                            is-open="datePickerFlag[3]" close-text="关闭"
                            ng-change="checkDate(condition, 'postDateStart', 'postDateEnd')" modal-size="small"
                            readonly>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">备注：</label>
                        <input type="text" ng-model="condition.note" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">车型：</label>
                        <input type="text" ng-model="condition.prodType" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">车号：</label>
                        <input type="text" ng-model="condition.machineNumber" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">CRM单据号：</label>
                        <input type="text" ng-model="condition.crmOrder" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">服务人员：</label>
                        <input type="text" ng-model="condition.serviceName" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">服务网点：</label>
                        <input type="text" ng-model="condition.serviceSite" class="form-control">
                    </div>

                </div>
            </div>
            <div yb-col-config show-toolbar="toolbarConfig.showColConfig" ng-model="tableConfig" col-fixed="true"
                has-check-col="true" set-tb-style="setFixedWidth()"></div>
            <div class="main-area">
                <div yb-table-fixed class="table-fixed-wrap fix-left" ele-count="4" scroll-area="right">
                    <div class="th-fixed">
                        <table class="table-fixed border-none" width="{{tableConfig.fixedWidth}}">
                            <thead>
                                <tr>
                                    <th width="40" class="text-center th-check border-l-none">
                                        <div yb-check-box yb-checked="markInfo.allChecked" yb-click="selectAll()"></div>
                                    </th>
                                    <th ng-repeat="itemCol in tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}"
                                        ng-show="!!itemCol.isShow && !!itemCol.isFixed">
                                        <div yb-thead-operate ng-model="itemCol" target-width="tableConfig.fixedWidth"
                                            fixed-width="tbStyle.billFixedWidth"></div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="th-scroll-x" ng-style="tbStyle.billFixedWidth">
                        <table class="table-fixed border-none" width="{{tableConfig.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th ng-repeat="itemCol in tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}"
                                        ng-show="!!itemCol.isShow && !itemCol.isFixed">
                                        <div yb-thead-operate ng-model="itemCol" target-width="tableConfig.scrollWidth">
                                        </div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll-y" ng-show="dataList.length > 0">
                        <table class="table-fixed border-none" width="{{tableConfig.fixedWidth}}">
                            <tbody>
                                <tr ng-repeat="item in dataList track by $index"
                                    ng-class="{'row-selected': $index === markInfo.curRow}"
                                    ng-click="selectRow($index)">
                                    <td width="40" class="text-center border-l-none">
                                        <div yb-check-box yb-checked="item.isChecked" yb-click="selectSingle(item)">
                                        </div>
                                    </td>
                                    <td class="spill-dots" ng-repeat="itemCol in tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" ng-show="!!itemCol.isShow && !!itemCol.isFixed"
                                        title="{{item[itemCol.dataField]}}">
                                        <span
                                            ng-if="(!itemCol.clickFn && itemCol.type !== 'operate') || !!itemCol.clickFn && itemCol.type == 'synSap' && item[itemCol.dataField] != '同步失败'">{{item[itemCol.dataField]}}</span>
                                        <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)"
                                            ng-if="(!!itemCol.clickFn && itemCol.type != 'synSap') || (!!itemCol.clickFn && itemCol.type == 'synSap' && item[itemCol.dataField] == '同步失败')">
                                            {{item[itemCol.dataField]}}
                                        </a>
                                        <div class="font-0" ng-if="itemCol.type === 'operate'">
                                            <button type="button" class="btn btn-operate m-r-xs"
                                                ng-click="printBill(item)"
                                                ng-disabled="!btnPermission.guaranteesOutPrint"
                                                title="{{!btnPermission.guaranteesOutPrint?'无权限执行此操作':''}}">打印</button>
                                            <button class="btn btn-operate m-r-xs" ng-click="outbound(item)"
                                                ng-if="curOrg.isBarcode === 0"
                                                ng-disabled="item.outLocationStatus === 2  || item.outLocationStatus === 3 || !btnPermission.guaranteesOutOut"
                                                title="{{!btnPermission.guaranteesOutOut?'无权限执行此操作':''}}">出库</button>
                                            
                                            <button type="button" class="btn btn-operate m-r-xs"
                                                ng-if="!btnPermission.guaranteesOutEditTJ"
                                                ng-click="editData(item)"
                                                ng-disabled="item.outLocationStatus === 2 || item.outLocationStatus === 3 || (curOrg.isBarcode !== 0 && item.sapStatus === 1) || !btnPermission.guaranteesOutEdit || (!isXF && item.createId!==curUser.userId)"
                                                title="{{!btnPermission.guaranteesOutEdit?'无权限执行此操作':''}}">编辑</button>

                                            <button type="button" class="btn btn-operate m-r-xs"
                                                ng-if="btnPermission.guaranteesOutEditTJ" ng-click="editData(item)"
                                                ng-disabled="item.outLocationStatus === 2 || item.outLocationStatus === 3 || !btnPermission.guaranteesOutEditTJ"
                                                title="{{!btnPermission.guaranteesOutEditTJ?'无权限执行此操作':''}}">编辑</button>
                                                
                                            <button type="button" class="btn btn-operate m-r-xs"
                                                ng-click="delData('single', item.id)"
                                                ng-disabled="item.outLocationStatus !== 0 || !btnPermission.guaranteesOutDel"
                                                title="{{!btnPermission.guaranteesOutDel?'无权限执行此操作':''}}">删除</button>
                                            <button class="btn btn-operate m-r-xs" ng-click="obligate(item)"
                                                ng-disabled="!!item.obligateDisabled || item.sapStatus === 1 || !btnPermission.guaranteesOutObligateAdd"
                                                title="{{!btnPermission.guaranteesOutObligateAdd?'无权限执行此操作':''}}">创建预留单</button>
                                            <button class="btn btn-operate m-r-xs" ng-click="posting(item)"
                                                ng-disabled="!!item.postingDisabled || item.outLocationStatus === 0 || item.postStatus === 2 || !btnPermission.guaranteesOutObligatePosting"
                                                title="{{!btnPermission.guaranteesOutObligatePosting?'无权限执行此操作':''}}">SAP过账</button>
                                            <button class="btn btn-operate m-r-xs"
                                                ng-click="mandatoryFinish(item.guaranteesOutNo)"
                                                ng-disabled="item.outLocationStatus === 2 || item.outLocationStatus === 3 || !btnPermission.mandatoryFinish"
                                                title="{{!btnPermission.mandatoryFinish?'无权限执行此操作':''}}">结单</button>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="dataList.length > 0" ng-style="tbStyle.billFixedWidth">
                        <table class="table-fixed border-none" width="{{tableConfig.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in dataList track by $index"
                                    ng-class="{'row-selected': $index === markInfo.curRow}"
                                    ng-click="selectRow($index)">
                                    <td class="spill-dots" ng-repeat="itemCol in tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" ng-show="!!itemCol.isShow && !itemCol.isFixed"
                                        title="{{item[itemCol.dataField]}}">
                                        <span
                                            ng-if="(!itemCol.clickFn && itemCol.type !== 'operate') || !!itemCol.clickFn && itemCol.type == 'synSap' && item[itemCol.dataField] != '同步失败'">{{item[itemCol.dataField]}}</span>
                                        <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)"
                                            ng-if="(!!itemCol.clickFn && itemCol.type != 'synSap') || (!!itemCol.clickFn && itemCol.type == 'synSap' && item[itemCol.dataField] == '同步失败')">
                                            {{item[itemCol.dataField]}}
                                        </a>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="dataList.length === 0">暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area page-bar wrapper-y-sm clearfix">
                <div yb-check-box class="m-t-xs m-r-sm" yb-checked="markInfo.allChecked" yb-check-name="全选"
                    yb-click="selectAll()"></div>
                <button class="btn btn-operate" ng-click="delData('batch')"
                    ng-disabled="!btnPermission.guaranteesOutDel"
                    title="{{!btnPermission.guaranteesOutDel?'无权限执行此操作':''}}">删除</button>
                <div yb-page-info ng-model="pageInfo" yb-refresh="search()"></div>
            </div>
        </div>
        <div tab heading="新增" active="activeFlag[1]" ng-if="activeFlag[1]">
            <div yb-step-bar class="m-t m-b-sm" ng-model="steps" style="width: 60%"></div>
            <div ng-show="steps.curStep === 0">
                <div class="row p-t-sm p-b-sm border-t">
                    <div class="search-bar wrapper-none col-xs-12">
                        <button class="btn-advance pull-right m-l-xs"
                            ng-click="switchToolbar('AdvanceSearch')">高级搜索</button>
                        <div class="input-group pull-right clearfix">
                            <input type="text" class="form-control txt-search" placeholder="客户名称"
                                ng-model="orderCondition.customerName">
                            <span class="input-group-addon cursor-pointer" ng-click="orderSearch(1)">搜索</span>
                        </div>
                    </div>
                </div>
                <div yb-advance-search show-toolbar="toolbarConfig.showAdvanceSearch" search-data="orderSearch(1)"
                    reset-data="addReset()" date-picker="true" hide-date="switchDataPicker()">
                    <div class="advance-search m-t-sm">
                        <div class="form-group clearfix">
                            <label class="control-label">申请单号：</label>
                            <input type="text" name="abnormalNo" ng-model="orderCondition.purchaseNo"
                                class="form-control">
                        </div>
                        <div class="form-group clearfix">
                            <label class="control-label">CRM单据号：</label>
                            <input type="text" name="crmOrder" ng-model="orderCondition.crmOrder" class="form-control">
                        </div>
                        <div class="form-group clearfix">
                            <label class="control-label">服务人员：</label>
                            <input type="text" name="serviceName" ng-model="orderCondition.serviceName"
                                class="form-control">
                        </div>
                        <div class="form-group clearfix">
                            <label class="control-label">调度员：</label>
                            <input type="text" name="abnormalNo" ng-model="orderCondition.dispatcherName"
                                class="form-control">
                        </div>
                        <div class="form-group clearfix m-b-none">
                            <label class="control-label">审核时间：</label>
                            <input type="text" class="form-control date-picker" ng-model="orderCondition.auditDateStart"
                                datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDataPicker(0)"
                                is-open="datePickerFlag[0]" close-text="关闭"
                                ng-change="checkDate(orderCondition, 'auditDateStart', 'auditDateEnd')"
                                modal-size="small" readonly>
                        </div>
                        <div class="form-group clearfix m-b-none">
                            <label class="control-label"></label>
                            <label class="control-label wave-line">~</label>
                        </div>
                        <div class="form-group clearfix">
                            <label class="control-label"></label>
                            <input type="text" class="form-control date-picker" ng-model="orderCondition.auditDateEnd"
                                datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDataPicker(1)"
                                is-open="datePickerFlag[1]" close-text="关闭"
                                ng-change="checkDate(condition, 'auditDateStart', 'auditDateEnd')" modal-size="small"
                                readonly>
                        </div>
                        <div class="form-group clearfix">
                            <label class="control-label">审核人：</label>
                            <input type="text" ng-model="orderCondition.realAuditName" class="form-control">
                        </div>
                    </div>
                </div>
                <div class="main-area" style="top:170px;">
                    <div yb-table-fixed class="table-fixed-wrap">
                        <div class="th-scroll-x">
                            <table class="table-fixed border-none" width="{{guaranteesBillTbConf.scrollWidth}}">
                                <thead>
                                    <tr>
                                        <th width="80">
                                            操作
                                        </th>
                                        <th ng-repeat="itemCol in guaranteesBillTbConf.tableCol track by $index"
                                            width="{{itemCol.width}}" ng-show="!!itemCol.isShow&&itemCol.type !== 'operate'">
                                            <div yb-thead-operate ng-model="itemCol"
                                                target-width="guaranteesBillTbConf.scrollWidth"></div>
                                        </th>
                                    </tr>
                                </thead>
                            </table>
                        </div>
                        <div class="td-scroll" ng-show="guaranteesBillList.length > 0">
                            <table class="table-fixed border-none" width="{{guaranteesBillTbConf.scrollWidth}}">
                                <tbody>
                                    <tr ng-repeat="item in guaranteesBillList track by $index">
                                        <td width="80">
                                            <button type="button" class="btn btn-operate"
                                                ng-click="selBill(item)">选择</button>
                                        </td>
                                        <td class="spill-dots"
                                            ng-repeat="itemCol in guaranteesBillTbConf.tableCol track by $index"
                                            width="{{itemCol.width}}" title="{{item[itemCol.dataField]}}"
                                            ng-show="!!itemCol.isShow&&itemCol.type !== 'operate'">
                                            {{item[itemCol.dataField]}}
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                        <div class="no-data w-full text-center p-t" ng-show="guaranteesBillList.length === 0">暂时没有数据
                        </div>
                    </div>
                </div>
                <div class="bottom-area page-bar wrapper-y-sm clearfix">
                    <div yb-page-info ng-model="billPageInfo" yb-refresh="orderSearch()"></div>
                </div>
            </div>
            <div ng-show="steps.curStep === 1">
                <form name="form" class="p-t-sm p-b-sm form-horizontal form-up-tb border-t clearfix" novalidate>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100">单据类型：</label>
                        <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                            title="{{detailInfo.headerInfo.guaranteesTypeName}}">
                            {{detailInfo.headerInfo.guaranteesTypeName}}
                        </label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100">三包申请单号：</label>
                        <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                            title="{{detailInfo.headerInfo.purchaseNo}}">
                            {{detailInfo.headerInfo.purchaseNo}}
                        </label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100">制单人：</label>
                        <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                            title="{{detailInfo.headerInfo.createName}}">
                            {{detailInfo.headerInfo.createName}}
                        </label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100">制单部门：</label>
                        <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                            title="{{detailInfo.headerInfo.createPartName}}">
                            {{detailInfo.headerInfo.createPartName}}
                        </label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100">制单时间：</label>
                        <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                            title="{{detailInfo.headerInfo.createDate | YbDate}}">
                            {{detailInfo.headerInfo.createDate | YbDate}}
                        </label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><i>*</i>调出仓库：</label>
                        <div class="col-xs-8 wrapper-none">
                            <div yb-form-clear ng-model="detailInfo.headerInfo.outLocation"
                                select-obj="selectWarehouse()" clear-form="clearWarehouse()" tips-name="调出仓库"
                                form-require="true"></div>

                            <div class="msg-block" ng-if="!detailInfo.headerInfo.outLocation && submitted">
                                <div class="error-msg">
                                    <div class="msg-triangle"></div>
                                    请选择调出仓库
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><i>*</i>调出库区：</label>
                        <div class="col-xs-8 wrapper-none">
                            <div yb-form-clear ng-model="detailInfo.headerInfo.outArea" select-obj="selectArea()"
                                clear-form="clearArea()" tips-name="调出库区" form-require="true"></div>

                            <div class="msg-block" ng-if="!detailInfo.headerInfo.outArea && submitted">
                                <div class="error-msg">
                                    <div class="msg-triangle"></div>
                                    请选择调出库区
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100">SAP内部订单：</label>
                        <label class="col-xs-8  control-label p-l-n text-left spill-dots"
                            title="{{detailInfo.headerInfo.sapName || '-'}}">
                            {{detailInfo.headerInfo.sapName || "-"}}
                        </label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4  control-label max-w-100">移动类型：</label>
                        <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                            title="{{detailInfo.headerInfo.sapTypeName || '-'}}">
                            {{detailInfo.headerInfo.sapTypeName}}
                        </label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100">备注：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" name="remark" class="form-control" ng-model="detailInfo.headerInfo.note"
                                maxlength="100">
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4  control-label max-w-100">车型：</label>
                        <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                            title="{{detailInfo.headerInfo.prodType || '-'}}">
                            {{detailInfo.headerInfo.prodType}}
                        </label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4  control-label max-w-100">车号：</label>
                        <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                            title="{{detailInfo.headerInfo.machineNumber || '-'}}">
                            {{detailInfo.headerInfo.machineNumber}}
                        </label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4  control-label max-w-100">CMR单据号：</label>
                        <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                            title="{{detailInfo.headerInfo.crmOrder || '-'}}">
                            {{detailInfo.headerInfo.crmOrder}}
                        </label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4  control-label max-w-100">服务人员：</label>
                        <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                            title="{{detailInfo.headerInfo.serviceName || '-'}}">
                            {{detailInfo.headerInfo.serviceName}}
                        </label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4  control-label max-w-100">服务网点：</label>
                        <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                            title="{{detailInfo.headerInfo.serviceSite || '-'}}">
                            {{detailInfo.headerInfo.serviceSite}}
                        </label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4  control-label max-w-100">服务信息单号：</label>
                        <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                            title="{{detailInfo.headerInfo.serviceNo || '-'}}">
                            {{detailInfo.headerInfo.serviceNo}}
                        </label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4  control-label max-w-100">收货人：</label>
                        <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                            title="{{detailInfo.headerInfo.receiverName || '-'}}">
                            {{detailInfo.headerInfo.receiverName}}
                        </label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4  control-label max-w-100">手机号：</label>
                        <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                            title="{{detailInfo.headerInfo.receiverPhone || '-'}}">
                            {{detailInfo.headerInfo.receiverPhone}}
                        </label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4  control-label max-w-100">收货地址：</label>
                        <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                            title="{{detailInfo.headerInfo.receiverAddress || '-'}}">
                            {{detailInfo.headerInfo.receiverAddress}}
                        </label>
                    </div>
                </form>
                <div class="panel-bar clearfix">
                    <div class="pull-left">
                        <i></i>零件信息
                    </div>
                </div>
                <div class="row wrapper-y-xs">
                    <div class="col-xs-12 operate-bar font-0">
                        <button class="btn btn-operate m-r-sm" ng-click="batchDelMateriel()">批量删除</button>
                    </div>
                </div>
                <div class="main-area d-b-60" style="top:420px;">
                    <div yb-table-fixed class="table-fixed-wrap">
                        <div class="th-scroll-x">
                            <table class="table-fixed border-none" width="{{newTbConf.scrollWidth}}">
                                <thead>
                                    <tr>
                                        <th width="40" class="th-check text-center">
                                            <div yb-check-box yb-checked="detailInfo.allCheckedMaterial"
                                                yb-click="selectAllMeal()"></div>
                                        </th>
                                        <th ng-repeat="itemCol in newTbConf.tableCol track by $index"
                                            width="{{itemCol.width}}">
                                            <div yb-thead-operate ng-model="itemCol"
                                                target-width="newTbConf.scrollWidth"></div>
                                        </th>
                                    </tr>
                                </thead>
                            </table>
                        </div>
                        <div class="td-scroll" ng-show="detailInfo.detailList.length > 0">
                            <table class="table-fixed border-none" width="{{newTbConf.scrollWidth}}">
                                <tbody>
                                    <tr ng-repeat="item in detailInfo.detailList track by $index">
                                        <td width="40" class="text-center">
                                            <div yb-check-box yb-checked="item.isChecked"
                                                yb-click="selectSingleMeal(item)"></div>
                                        </td>
                                        <td ng-repeat="itemCol in newTbConf.tableCol track by $index"
                                            width="{{itemCol.width}}" title="{{item[itemCol.dataField]}}">
                                            <div class="spill-dots" ng-if="!itemCol.input">
                                                <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)"
                                                    ng-if="!!itemCol.clickFn">
                                                    {{item[itemCol.dataField]}}
                                                </a>
                                                <span ng-if="!itemCol.clickFn">
                                                    {{item[itemCol.dataField]}}
                                                </span>
                                            </div>
                                            <div ng-if="!!itemCol.input && itemCol.inputType === 'num'"
                                                class="td-edit pos-r">
                                                <input type="text" class="form-control"
                                                    ng-model="item[itemCol.dataField]" ng-focus="showQtyTip(item)"
                                                    ng-blur="hideQtyTip(item)" ng-change="checkQty(item)"
                                                    yb-number-input max="99999.999" maxlength="9"
                                                    disable-decimal="false" decimal-places="3"
                                                    ng-class="{'error': !!item.deliveryQtyErr, 'high-warning': item.qtyStockErr && (item.qtyStockErrLevel == 3),
                                                    'mid-warning': item.qtyStockErr  && (item.qtyStockErrLevel == 2), 'low-warning': item.qtyStockErr  && (item.qtyStockErrLevel == 1)}">
                                                <div class="pos-a tool-tips" ng-if="!!item.deliveryQtyErr">
                                                    <i class="triangle"></i>
                                                    <div class="msg">{{item.deliveryQtyErrMsg}}</div>
                                                </div>
                                                <div class="pos-a tool-tips" ng-if="item.showStockErr">
                                                    <i class="triangle"></i>
                                                    <div class="msg">{{item.qtyErrMsg}}</div>
                                                </div>
                                            </div>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                        <div class="no-data w-full text-center p-t" ng-show="detailInfo.detailList.length === 0">暂时没有数据
                        </div>
                    </div>
                </div>
                <div class="bottom-area btn-bar text-center clearfix">
                    <button type="button" class="btn btn-primary m-r-sm" ng-click="prevStep()">上一步</button>
                    <button type="button" class="btn btn-primary m-r-sm" ng-click="saveData(form.$valid)">提交</button>
                    <button type="button" class="btn btn-default m-r-sm" ng-click="cancel()">取消</button>
                </div>
            </div>
        </div>
        <div tab heading="编辑" active="activeFlag[2]" ng-if="activeFlag[2]">
            <form name="form" class="p-t-sm p-b-sm form-horizontal form-up-tb clearfix" novalidate>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">三包出库单号：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                        title="{{detailInfo.headerInfo.guaranteesOutNo}}">
                        {{detailInfo.headerInfo.guaranteesOutNo}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">单据类型：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                        title="{{detailInfo.headerInfo.guaranteesTypeName}}">
                        {{detailInfo.headerInfo.guaranteesTypeName}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">三包申请单号：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                        title="{{detailInfo.headerInfo.purchaseNo}}">
                        {{detailInfo.headerInfo.purchaseNo}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">制单人：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                        title="{{detailInfo.headerInfo.createName}}">
                        {{detailInfo.headerInfo.createName}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">制单部门：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                        title="{{detailInfo.headerInfo.createPartName}}">
                        {{detailInfo.headerInfo.createPartName}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">制单时间：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                        title="{{detailInfo.headerInfo.createDate | YbDate}}">
                        {{detailInfo.headerInfo.createDate | YbDate}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="!(isSCH||isXF)">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i>调出仓库：</label>
                    <div class="col-xs-8 wrapper-none">
                        <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                            {{detailInfo.headerInfo.outLocation  || "-"}}
                        </label>

                    </div>
                </div>

                <div class="form-group col-xs-3 m-b-sm" ng-if="isSCH||isXF">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i>调出仓库：</label>
                    <div class="col-xs-8 wrapper-none" ng-if="detailInfo.headerInfo.outLocationStatus == 0&&detailInfo.headerInfo.sapStatus != 1">
                        <div yb-form-clear ng-model="detailInfo.headerInfo.outLocation"
                             select-obj="selectWarehouse()" clear-form="scClearWarehouse()" tips-name="调出仓库"
                             form-require="true"></div>

                        <div class="msg-block" ng-if="!detailInfo.headerInfo.outLocation && submitted">
                            <div class="error-msg">
                                <div class="msg-triangle"></div>
                                请选择调出仓库
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-8 wrapper-none" ng-if="!(detailInfo.headerInfo.outLocationStatus == 0&&detailInfo.headerInfo.sapStatus != 1)">
                        <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                            {{detailInfo.headerInfo.outLocation  || "-"}}
                        </label>

                    </div>
                </div>

                <div class="form-group col-xs-3 m-b-sm" ng-if="!(isSCH||isXF)">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i>调出库区：</label>
                    <div class="col-xs-8 wrapper-none">
                        <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                            {{detailInfo.headerInfo.outArea  || "-"}}
                        </label>

                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="isSCH||isXF">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i>调出库区：</label>
                    <div class="col-xs-8 wrapper-none" ng-if="detailInfo.headerInfo.outLocationStatus == 0&&detailInfo.headerInfo.sapStatus != 1">
                        <div yb-form-clear ng-model="detailInfo.headerInfo.outArea" select-obj="selectArea()"
                             ng-disabled="detailInfo.headerInfo.outLocationStatus != 0||detailInfo.headerInfo.sapStatus != 0"
                             clear-form="scClearArea()" tips-name="调出库区" form-require="true"></div>

                        <div class="msg-block" ng-if="!detailInfo.headerInfo.outArea && submitted">
                            <div class="error-msg">
                                <div class="msg-triangle"></div>
                                请选择调出库区
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-8 wrapper-none" ng-if="!(detailInfo.headerInfo.outLocationStatus == 0&&detailInfo.headerInfo.sapStatus != 1)">
                        <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                            {{detailInfo.headerInfo.outArea  || "-"}}
                        </label>

                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4  control-label max-w-100">SAP内部订单：</label>
                    <div class="col-xs-8 control-label p-l-n text-left"
                        title="{{detailInfo.headerInfo.sapName || '-'}}">
                        {{detailInfo.headerInfo.sapName || "-"}}
                    </div>
                </div>

                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">移动类型：</label>
                    <div class="col-xs-8 control-label p-l-n text-left"
                        title="{{detailInfo.headerInfo.sapTypeName || '-'}}">
                        {{detailInfo.headerInfo.sapTypeName}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">出库状态：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{detailInfo.headerInfo.outLocationStatus | ProgressStatus:"outDepot"}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">备注：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="remark" class="form-control" ng-model="detailInfo.headerInfo.note"
                            maxlength="100">
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4  control-label max-w-100">车型：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                        title="{{detailInfo.headerInfo.prodType || '-'}}">
                        {{detailInfo.headerInfo.prodType}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4  control-label max-w-100">车号：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                        title="{{detailInfo.headerInfo.machineNumber || '-'}}">
                        {{detailInfo.headerInfo.machineNumber}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4  control-label max-w-100">CMR单据号：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                        title="{{detailInfo.headerInfo.crmOrder || '-'}}">
                        {{detailInfo.headerInfo.crmOrder}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4  control-label max-w-100">服务人员：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                        title="{{detailInfo.headerInfo.serviceName || '-'}}">
                        {{detailInfo.headerInfo.serviceName}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4  control-label max-w-100">服务网点：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                        title="{{detailInfo.headerInfo.serviceSite || '-'}}">
                        {{detailInfo.headerInfo.serviceSite}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4  control-label max-w-100">服务信息单号：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                        title="{{detailInfo.headerInfo.serviceNo || '-'}}">
                        {{detailInfo.headerInfo.serviceNo}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                  <label class="col-xs-4  control-label max-w-100">收货人：</label>
                  <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                      title="{{detailInfo.headerInfo.receiverName || '-'}}">
                      {{detailInfo.headerInfo.receiverName}}
                  </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                  <label class="col-xs-4  control-label max-w-100">手机号：</label>
                  <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                      title="{{detailInfo.headerInfo.receiverPhone || '-'}}">
                      {{detailInfo.headerInfo.receiverPhone}}
                  </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                  <label class="col-xs-4  control-label max-w-100">收货地址：</label>
                  <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                      title="{{detailInfo.headerInfo.receiverAddress || '-'}}">
                      {{detailInfo.headerInfo.receiverAddress}}
                  </label>
                </div>
            </form>
            <div class="panel-bar clearfix">
                <div class="pull-left">
                    <i></i>零件信息
                </div>
            </div>
            <div class="main-area d-b-60" style="top:340px;">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{editTbConf.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th ng-repeat="itemCol in editTbConf.tableCol track by $index"
                                        width="{{itemCol.width}}">
                                        <div yb-thead-operate ng-model="itemCol" target-width="editTbConf.scrollWidth">
                                        </div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="detailInfo.detailList.length > 0">
                        <table class="table-fixed border-none" width="{{editTbConf.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in detailInfo.detailList track by $index">
                                    <td ng-repeat="itemCol in editTbConf.tableCol track by $index"
                                        width="{{itemCol.width}}" title="{{item[itemCol.dataField]}}">
                                        <div class="spill-dots"
                                            ng-if="(!itemCol.input && itemCol.type!=='operate') || item.outLocationStatus == 2 || item.outLocationStatus == 3">
                                            <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)"
                                                ng-if="!!itemCol.clickFn">
                                                {{item[itemCol.dataField]}}
                                            </a>
                                            <span ng-if="!itemCol.clickFn">
                                                {{item[itemCol.dataField]}}
                                            </span>
                                        </div>
                                        <div ng-if="!!itemCol.input && itemCol.inputType === 'num' && (!item.outLocationStatus || item.outLocationStatus == 1)"
                                            class="td-edit pos-r">
                                            <input type="text" class="form-control" ng-model="item[itemCol.dataField]"
                                                ng-focus="showQtyTip(item)" ng-blur="hideQtyTip(item)"
                                                ng-change="checkQty(item)" yb-number-input max="99999.999" maxlength="9"
                                                disable-decimal="false" decimal-places="3"
                                                ng-class="{'error': !!item.deliveryQtyErr, 'high-warning': item.qtyStockErr && (item.qtyStockErrLevel == 3),
                                                    'mid-warning': item.qtyStockErr  && (item.qtyStockErrLevel == 2), 'low-warning': item.qtyStockErr  && (item.qtyStockErrLevel == 1)}">
                                            <div class="pos-a tool-tips" ng-if="!!item.deliveryQtyErr">
                                                <i class="triangle"></i>
                                                <div class="msg">{{item.deliveryQtyErrMsg}}</div>
                                            </div>
                                            <div class="pos-a tool-tips" ng-if="item.showStockErr">
                                                <i class="triangle"></i>
                                                <div class="msg">{{item.qtyErrMsg}}</div>
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="detailInfo.detailList.length === 0">暂时没有数据
                    </div>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-primary m-r-sm" ng-click="saveData(form.$valid)">提交</button>
                <button type="button" class="btn btn-default m-r-sm" ng-click="cancel()">取消</button>
            </div>
        </div>
        <div tab heading="详情" active="activeFlag[3]" ng-if="activeFlag[3]">
            <div class="m-t-sm form-up-tb clearfix">
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">三包出库单号：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.guaranteesOutNo || '-'}}">
                        {{detailInfo.headerInfo.guaranteesOutNo || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">单据类型：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.headerInfo.guaranteesTypeName || '-'}}">
                        {{detailInfo.headerInfo.guaranteesTypeName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">三包申请单号：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.purchaseNo || '-'}}">
                        {{detailInfo.headerInfo.purchaseNo || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100 spill-dots">零件凭证：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.voucherNo || '-'}}">
                        {{detailInfo.headerInfo.voucherNo || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100 spill-dots">过账状态：</label>
                    <div class="col-xs-8 wrapper-none spill-dots">
                        {{detailInfo.headerInfo.postStatus | ProgressStatus:"posting"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">制单人：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.createName || '-'}}">
                        {{detailInfo.headerInfo.createName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">制单部门：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.headerInfo.createPartName || '-'}}">
                        {{detailInfo.headerInfo.createPartName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">制单时间：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.createDate | YbDate}}">
                        {{detailInfo.headerInfo.createDate | YbDate:'yyyy-MM-dd HH:mm:ss'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">调出仓库：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.outLocation || '-'}}">
                        {{detailInfo.headerInfo.outLocation || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">调出库区：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.outArea || '-'}}">
                        {{detailInfo.headerInfo.outArea || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">SAP内部订单：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.sapName || '-'}}">
                        {{detailInfo.headerInfo.sapName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">移动类型：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.sapTypeName || '-'}}">
                        {{detailInfo.headerInfo.sapTypeName || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">出库状态：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.headerInfo.outLocationStatus | ProgressStatus:'outDepot'}}">
                        {{detailInfo.headerInfo.outLocationStatus | ProgressStatus:"outDepot"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">备注：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.note || '-'}}">
                        {{detailInfo.headerInfo.note || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">车型：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.prodType||'-'}}">
                        {{detailInfo.headerInfo.prodType || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">车号：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.machineNumber||'-'}}">
                        {{detailInfo.headerInfo.machineNumber || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">CRM单据号：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.crmOrder||'-'}}">
                        {{detailInfo.headerInfo.crmOrder || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">服务人员：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.serviceName||'-'}}">
                        {{detailInfo.headerInfo.serviceName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">服务网点：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.serviceSite||'-'}}">
                        {{detailInfo.headerInfo.serviceSite || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">服务信息单号：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.serviceNo||'-'}}">
                        {{detailInfo.headerInfo.serviceNo || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                  <label class="col-xs-4 m-b-n text-right max-w-100">收货人：</label>
                  <label class="col-xs-8 wrapper-none spill-dots"
                      title="{{detailInfo.headerInfo.receiverName || '-'}}">
                      {{detailInfo.headerInfo.receiverName}}
                  </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">手机号：</label>
                    <label class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.headerInfo.receiverPhone || '-'}}">
                        {{detailInfo.headerInfo.receiverPhone}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">收货地址：</label>
                    <label class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.headerInfo.receiverAddress || '-'}}">
                        {{detailInfo.headerInfo.receiverAddress}}
                    </label>
                </div>
            </div>
            <div class="panel-bar clearfix">
                <div class="pull-left">
                    <i></i>零件信息
                </div>
            </div>
            <div class="row wrapper-y-xs">
                <div class="col-xs-12 operate-bar font-0">
                    <button class="btn btn-operate m-r-sm" ng-click="batchPrint4Details()">批量打印</button>
                </div>
            </div>
            <div class="main-area d-b-60" style="top:290px;">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{detailTbConf.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th width="40" class="text-center th-check border-l-none">
                                        <div yb-check-box yb-checked="detailInfo.allCheckedMaterial" yb-click="selectAllMeal()"></div>
                                    </th>
                                    <th width="140" class="border-l-none">
                                        操作
                                    </th>
                                    <th ng-repeat="itemCol in detailTbConf.tableCol track by $index"
                                        width="{{itemCol.width}}" ng-if="!itemCol.hidden">
                                        <div yb-thead-operate ng-model="itemCol"
                                            target-width="detailTbConf.scrollWidth"></div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="detailInfo.detailList.length > 0">
                        <table class="table-fixed border-none" width="{{detailTbConf.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in detailInfo.detailList track by $index">
                                    <td width="40" class="text-center border-l-none">
                                        <div yb-check-box yb-checked="item.isChecked" yb-click="selectSingleMeal(item)"></div>
                                    </td>
                                    <td width="140" class="font-0">
                                        <button class="btn btn-operate m-r-xs"
                                            ng-click="printBill4Details(item)"
                                            ng-disabled="!btnPermission.guaranteesOutPrint"
                                            title="{{!btnPermission.guaranteesOutPrint?'无权限执行此操作':''}}">打印</button>
                                        <button class="btn btn-operate m-r-xs"
                                            ng-click="mandatoryFinish(detailInfo.headerInfo.guaranteesOutNo, detailInfo.headerInfo.id, item.materialsNo)"
                                            ng-disabled="detailInfo.headerInfo.outLocationStatus == 2 || detailInfo.headerInfo.outLocationStatus == 3 || item.outLocationStatus == 2 || item.outLocationStatus == 3 || !btnPermission.mandatoryFinish"
                                            title="{{!btnPermission.mandatoryFinish?'无权限执行此操作':''}}">结单</button>
                                        <button class="btn btn-operate m-r-xs"
                                            ng-click="posting(detailInfo.headerInfo, item.materialsNo)"
                                            ng-disabled="item.realOutQty <= item.postAmount || item.outLocationStatus == 3 || !btnPermission.guaranteesOutObligatePosting"
                                            title="{{!btnPermission.guaranteesOutObligatePosting?'无权限执行此操作':''}}">过账</button>
                                        <button class="btn btn-operate"
                                            ng-click="deliveryRevoke(detailInfo.headerInfo, item.materialsNo)"
                                            ng-disabled="item.outLocationStatus === 0 || item.outLocationStatus == 3 || !btnPermission.mandatoryFinish"
                                            title="{{!btnPermission.mandatoryFinish?'无权限执行此操作':''}}"
                                            ng-if="!item.voucherNo">撤回</button>
                                    </td>
                                    <td ng-repeat="itemCol in detailTbConf.tableCol track by $index"
                                        width="{{itemCol.width}}" class="spill-dots" title="{{item[itemCol.dataField]}}" ng-if="!itemCol.hidden">
                                        {{item[itemCol.dataField]}}
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="detailInfo.detailList.length === 0">暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-primary m-r-sm"
                    ng-click="mandatoryFinish(detailInfo.headerInfo.guaranteesOutNo, detailInfo.headerInfo.id)"
                    ng-disabled="detailInfo.headerInfo.outLocationStatus == 2 || detailInfo.headerInfo.outLocationStatus == 3 || !btnPermission.mandatoryFinish"
                    title="{{!btnPermission.mandatoryFinish?'无权限执行此操作':''}}">结单</button>
                <button type="button" class="btn btn-default m-r-sm" ng-click="cancel()">返回</button>
            </div>
        </div>
        <div tab heading="出库" active="activeFlag[4]" ng-if="activeFlag[4]">
            <div class="m-t-sm form-up-tb clearfix">
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">三包出库单号：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.headerInfo.guaranteesOutNo || '-'}}">
                        {{detailInfo.headerInfo.guaranteesOutNo || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">单据类型：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.headerInfo.guaranteesTypeName || '-'}}">
                        {{detailInfo.headerInfo.guaranteesTypeName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">三包申请单号：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.purchaseNo || '-'}}">
                        {{detailInfo.headerInfo.purchaseNo || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">制单人：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.createName || '-'}}">
                        {{detailInfo.headerInfo.createName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">制单部门：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.headerInfo.createPartName || '-'}}">
                        {{detailInfo.headerInfo.createPartName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">制单时间：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.createDate | YbDate}}">
                        {{detailInfo.headerInfo.createDate | YbDate}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">调出仓库：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.outLocation || '-'}}">
                        {{detailInfo.headerInfo.outLocation || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">调出库区：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.outArea || '-'}}">
                        {{detailInfo.headerInfo.outArea || "-"}}
                    </div>
                </div>
                <!-- <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">SAP内部订单：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.sapName || '-'}}">
                        {{detailInfo.headerInfo.sapName || "-"}}
                        </div>
                </div> -->
                <!-- liukun:添加内部订单号和内部订单号描述 -->
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">内部订单号：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.sapId}}">
                        {{detailInfo.headerInfo.sapId}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">内部订单号描述：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.sapName}}">
                        {{detailInfo.headerInfo.sapName||'-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">移动类型：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.sapTypeName || '-'}}">
                        {{detailInfo.headerInfo.sapTypeName}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">备注：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.note || '-'}}">
                        {{detailInfo.headerInfo.note || "-"}}
                    </div>
                </div>
            </div>
            <div class="panel-bar clearfix">
                <div class="pull-left">
                    <i></i>零件信息
                </div>
            </div>
            <div class="main-area d-b-60" style="top:170px;">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{outTbConf.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th width="40" class="text-center th-check border-l-none">
                                        <div yb-check-box yb-checked="detailInfo.allChecked" yb-click="selectAllCK()"></div>
                                    </th>
                                    <th ng-repeat="itemCol in outTbConf.tableCol track by $index"
                                        width="{{itemCol.width}}">
                                        <div yb-thead-operate ng-model="itemCol" target-width="outTbConf.scrollWidth">
                                        </div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="detailInfo.detailList.length > 0">
                        <table class="table-fixed border-none" width="{{outTbConf.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in detailInfo.detailList track by $index">
                                    <td width="40" class="text-center border-l-none">
                                        <div yb-check-box yb-checked="item.isChecked" yb-click="selectSingleCK(item)">
                                        </div>
                                    </td>
                                    <td ng-repeat="itemCol in outTbConf.tableCol track by $index"
                                        width="{{itemCol.width}}"
                                        ng-class="{'wrapper-none': itemCol.inputType === 'func'}">
                                        <div class="spill-dots"
                                            ng-if="!itemCol.input || item.outLocationStatus == 2 || item.outLocationStatus == 3"
                                            title="{{item[itemCol.dataField]}}">
                                            {{item[itemCol.dataField]}}
                                        </div>
                                        <div ng-if="!!itemCol.input && itemCol.inputType === 'num' && (!item.outLocationStatus || item.outLocationStatus == 1)"
                                            class="td-edit pos-r">
                                            <input type="text" class="form-control" ng-model="item[itemCol.dataField]"
                                                ng-focus="showQtyTip(item)" ng-blur="hideQtyTip(item)"
                                                ng-change="checkQty(item)" yb-number-input max="99999.999" maxlength="9"
                                                disable-decimal="false" decimal-places="3"
                                                ng-class="{'error': !!item.deliveryQtyErr, 'high-warning': item.qtyStockErr && (item.qtyStockErrLevel == 3),
                                                    'mid-warning': item.qtyStockErr  && (item.qtyStockErrLevel == 2), 'low-warning': item.qtyStockErr  && (item.qtyStockErrLevel == 1)}">
                                        </div>
                                        <div ng-if="!!itemCol.input && itemCol.inputType === 'func' && (!item.outLocationStatus || item.outLocationStatus == 1)"
                                            class="td-edit pos-r">
                                            <div yb-form-clear class="td-edit" ng-model="item[itemCol.dataField]"
                                                select-obj="selDepot(item)" clear-form="clearDepot(item)" tips-name="储位"
                                                title="{{item[itemCol.dataField]}}"></div>
                                            <div class="pos-a tool-tips"
                                                ng-if="!!item.locationErr && !item.stockLocation">
                                                <i class="triangle"></i>
                                                <div class="msg">请选择储位</div>
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="detailInfo.detailList.length === 0">暂时没有数据
                    </div>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-primary m-r-sm" ng-click="outboundSubmit()">确认出库</button>
                <button type="button" class="btn btn-default" ng-click="cancel()">取消</button>
            </div>
        </div>
        <div tab heading="三包出库条码编辑" active="activeFlag[5]" ng-if="activeFlag[5]">
            <div class="m-t-sm form-up-tb clearfix">
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">零件编号：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{codeInfo.headerInfo.materialsNo || '-'}}">
                        {{codeInfo.headerInfo.materialsNo || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">零件中文名：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{codeInfo.headerInfo.materialsDesc || '-'}}">
                        {{codeInfo.headerInfo.materialsDesc || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">出库数量：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{codeInfo.headerInfo.deliveryQty || '-'}}">
                        {{codeInfo.headerInfo.deliveryQty || "-"}}
                    </div>
                </div>
            </div>
            <div class="panel-bar clearfix">
                <div class="pull-left">
                    <i></i>条码信息
                </div>
            </div>
            <div class="row wrapper-y-xs">
                <div class="col-xs-12 operate-bar font-0">
                    <button class="btn btn-operate m-r-sm" ng-click="addRow()">新增一行</button>
                </div>
            </div>
            <div class="main-area d-b-60" style="top:150px;">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{codeTbConf.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th ng-repeat="itemCol in codeTbConf.tableCol track by $index"
                                        width="{{itemCol.width}}">
                                        <div yb-thead-operate ng-model="itemCol" target-width="codeTbConf.scrollWidth">
                                        </div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="codeInfo.codeList.length > 0">
                        <table class="table-fixed border-none" width="{{codeTbConf.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in codeInfo.codeList track by $index">
                                    <td ng-repeat="itemCol in codeTbConf.tableCol track by $index"
                                        width="{{itemCol.width}}"
                                        ng-class="{'wrapper-none': itemCol.inputType === 'func'}">
                                        <div class="spill-dots" ng-if="!itemCol.input"
                                            title="{{item[itemCol.dataField]}}">
                                            {{item[itemCol.dataField]}}
                                        </div>
                                        <div ng-if="!!itemCol.input && itemCol.inputType === 'code'"
                                            class="td-edit pos-r">
                                            <div yb-form-clear ng-model="item[itemCol.dataField]"
                                                select-obj="selectCode(item)" clear-form="clearCode(item)"
                                                tips-name="条码" title="{{item[itemCol.dataField]}}"></div>
                                            <div class="pos-a tool-tips"
                                                ng-if="!!item.codeErr && !item.code && subbmitted">
                                                <i class="triangle"></i>
                                                <div class="msg">请选择条码</div>
                                            </div>
                                            <!-- <div yb-form-clear ng-model="item[itemCol.dataField]"
                                                select-obj="selectCode(item)"
                                                clear-form="clearCode(item)" tips-name="条码"
                                                ng-class="{'error': (!!item.qtyErr || !item.materialsDesc)}"></div>
                                            <div class="pos-a tool-tips" ng-if="!!item.qtyErr || !item.materialsDesc">
                                                <i class="triangle"></i>
                                                <div class="msg">请正确选择条码</div>
                                            </div> -->
                                        </div>
                                        <div ng-if="!!itemCol.input && itemCol.inputType === 'num'"
                                            class="td-edit pos-r">
                                            <input type="text" class="form-control" ng-model="item[itemCol.dataField]"
                                                yb-number-input max="99999" maxlength="9" disable-decimal="true"
                                                ng-change="checkCodeNum(item)"
                                                ng-class="{'error': !!item.checkCodeNumErr}">
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="codeInfo.codeList.length === 0">暂时没有数据
                    </div>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-primary m-r-sm" ng-click="codeSubmit()">确认配置</button>
                <button type="button" class="btn btn-default" ng-click="cancelCodeInput()">取消</button>
            </div>
        </div>
        <div tab heading="已删除记录" active="activeFlag[6]" ng-if="activeFlag[6]">
            <div class="main-area"  style="top:35px">
                    <div yb-table-fixed class="table-fixed-wrap fix-left" ele-count="4" scroll-area="right">
                        <div class="th-fixed">
                            <table class="table-fixed border-none" >
                                <thead>
                                    <tr>
                                        <th ng-repeat="itemCol in tbConfDel.tableCol track by $index" width="{{itemCol.width}}"
                                            ng-show="!!itemCol.isShow && !!itemCol.isFixed">
                                            <div yb-thead-operate ng-model="itemCol" target-width="tbConfDel.fixedWidth"
                                                ></div>
                                        </th>
                                    </tr>
                                </thead>
                            </table>
                        </div>
                        <div class="th-scroll-x" >
                            <table class="table-fixed border-none" width="{{tbConfDel.scrollWidth}}">
                                <thead>
                                    <tr>
                                        <th ng-repeat="itemCol in tbConfDel.tableCol track by $index" width="{{itemCol.width}}"
                                            ng-show="!!itemCol.isShow && !itemCol.isFixed">
                                            <div yb-thead-operate ng-model="itemCol" target-width="tbConfDel.scrollWidth">
                                            </div>
                                        </th>
                                    </tr>
                                </thead>
                            </table>
                        </div>
                        <div class="td-scroll-y">
                            <table class="table-fixed border-none" >
                                <tbody>
                                    <tr ng-repeat="item in dataDelList track by $index" ng-click="selectRow($index)"
                                        ng-class="{'row-selected': $index === markInfo.curRow}">
                                        <td class="spill-dots" ng-repeat="itemCol in tbConfDel.tableCol track by $index"
                                            width="{{itemCol.width}}" ng-show="!!itemCol.isShow && !!itemCol.isFixed"
                                            title="{{item[itemCol.dataField]}}">
                                            <span
                                                ng-if="(!itemCol.clickFn && itemCol.type !== 'operate') || !!itemCol.clickFn && itemCol.type == 'synSap' && item[itemCol.dataField] != '同步失败'">{{item[itemCol.dataField]}}</span>
                                            <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)"
                                                ng-if="(!!itemCol.clickFn && itemCol.type != 'synSap') || (!!itemCol.clickFn && itemCol.type == 'synSap' && item[itemCol.dataField] == '同步失败')">
                                                {{item[itemCol.dataField]}}
                                            </a>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                        <div class="td-scroll" ng-show="dataDelList.length > 0" >
                            <table class="table-fixed border-none" width="{{tbConfDel.scrollWidth}}">
                                <tbody>
                                    <tr ng-repeat="item in dataDelList track by $index" ng-click="selectRow($index)"
                                        ng-class="{'row-selected': $index === markInfo.curRow}">
                                        <td class="spill-dots" ng-repeat="itemCol in tbConfDel.tableCol track by $index"
                                            width="{{itemCol.width}}" ng-show="!!itemCol.isShow && !itemCol.isFixed"
                                            title="{{item[itemCol.dataField]}}">
                                            <span
                                                ng-if="(!itemCol.clickFn && itemCol.type !== 'operate') || !!itemCol.clickFn && itemCol.type == 'synSap' && item[itemCol.dataField] != '同步失败'">{{item[itemCol.dataField]}}</span>
                                            <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn,'del')"
                                                ng-if="(!!itemCol.clickFn && itemCol.type != 'synSap') || (!!itemCol.clickFn && itemCol.type == 'synSap' && item[itemCol.dataField] == '同步失败')">
                                                {{item[itemCol.dataField]}}
                                            </a>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                        <div class="no-data w-full text-center p-t" ng-show="dataDelList.length === 0">暂时没有数据</div>
                    </div>
            </div>
            <div class="bottom-area page-bar wrapper-y-sm clearfix">
               <div yb-page-info ng-model="pageInfoDel" yb-refresh="delHistory()"></div>
            </div>
        </div>
        <div tab heading="已删除详情" active="activeFlag[7]" ng-if="activeFlag[7]">
            <div class="m-t-sm form-up-tb clearfix">
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">三包出库单号：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.guaranteesOutNo || '-'}}">
                        {{detailInfo.headerInfo.guaranteesOutNo || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">单据类型：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.headerInfo.guaranteesTypeName || '-'}}">
                        {{detailInfo.headerInfo.guaranteesTypeName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">三包申请单号：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.purchaseNo || '-'}}">
                        {{detailInfo.headerInfo.purchaseNo || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100 spill-dots">零件凭证：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.voucherNo || '-'}}">
                        {{detailInfo.headerInfo.voucherNo || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100 spill-dots">过账状态：</label>
                    <div class="col-xs-8 wrapper-none spill-dots">
                        {{detailInfo.headerInfo.postStatus | ProgressStatus:"posting"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">制单人：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.createName || '-'}}">
                        {{detailInfo.headerInfo.createName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">制单部门：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.headerInfo.createPartName || '-'}}">
                        {{detailInfo.headerInfo.createPartName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">制单时间：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.createDate | YbDate}}">
                        {{detailInfo.headerInfo.createDate | YbDate:'yyyy-MM-dd HH:mm:ss'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">调出仓库：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.outLocation || '-'}}">
                        {{detailInfo.headerInfo.outLocation || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">调出库区：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.outArea || '-'}}">
                        {{detailInfo.headerInfo.outArea || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">SAP内部订单：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.sapName || '-'}}">
                        {{detailInfo.headerInfo.sapName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">移动类型：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.sapTypeName || '-'}}">
                        {{detailInfo.headerInfo.sapTypeName || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">出库状态：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{detailInfo.headerInfo.outLocationStatus | ProgressStatus:'outDepot'}}">
                        {{detailInfo.headerInfo.outLocationStatus | ProgressStatus:"outDepot"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">备注：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.note || '-'}}">
                        {{detailInfo.headerInfo.note || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">车型：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.prodType||'-'}}">
                        {{detailInfo.headerInfo.prodType || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">车号：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.machineNumber||'-'}}">
                        {{detailInfo.headerInfo.machineNumber || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">CRM单据号：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.crmOrder||'-'}}">
                        {{detailInfo.headerInfo.crmOrder || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">服务人员：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.serviceName||'-'}}">
                        {{detailInfo.headerInfo.serviceName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">服务网点：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.serviceSite||'-'}}">
                        {{detailInfo.headerInfo.serviceSite || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">服务信息单号：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.serviceNo||'-'}}">
                        {{detailInfo.headerInfo.serviceNo || "-"}}
                    </div>
                </div>
            </div>
            <div class="panel-bar clearfix">
                <div class="pull-left">
                    <i></i>零件信息
                </div>
            </div>
            <div class="row wrapper-y-xs">
                <div class="col-xs-12 operate-bar font-0">
                    <button class="btn btn-operate m-r-sm" ng-click="batchPrint4Details()">批量打印</button>
                </div>
            </div>
            <div class="main-area d-b-60" style="top:260px;">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{detailTbConf.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th ng-repeat="itemCol in detailTbConf.tableCol track by $index"
                                        width="{{itemCol.width}}">
                                        <div yb-thead-operate ng-model="itemCol"
                                            target-width="detailTbConf.scrollWidth"></div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="detailInfo.detailList.length > 0">
                        <table class="table-fixed border-none" width="{{detailTbConf.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in detailInfo.detailList track by $index">
                                    <td ng-repeat="itemCol in detailTbConf.tableCol track by $index"
                                        width="{{itemCol.width}}" class="spill-dots"
                                        title="{{item[itemCol.dataField]}}">
                                        {{item[itemCol.dataField]}}
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="detailInfo.detailList.length === 0">暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-primary m-r-sm"
                    ng-click="mandatoryFinish(detailInfo.headerInfo.guaranteesOutNo, detailInfo.headerInfo.id)"
                    ng-disabled="detailInfo.headerInfo.outLocationStatus == 2 || detailInfo.headerInfo.outLocationStatus == 3 || !btnPermission.mandatoryFinish"
                    title="{{!btnPermission.mandatoryFinish?'无权限执行此操作':''}}">结单</button>
                <button type="button" class="btn btn-default m-r-sm" ng-click="cancel()">返回</button>
            </div>
        </div>
    </div>
</div>
